package com.qaml.mes.device.vo.eqp;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.qaml.mes.device.utils.Long2StringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @ClassName OrgRestVO
 * @Description 组织架构
 * @Author leikai
 * @Date 2024/3/7 0007 9:24
 * @Version 1.0
 */

@ApiModel(value = "组织架构", description = "组织架构")
@Data
public class OrgRestVO implements Serializable {

    private static final long serialVersionUID = 1070339653928409029L;

    @ApiModelProperty(value = "组织id")
    @JsonSerialize(using = Long2StringSerializer.class)
    private Long orgId;

    @ApiModelProperty(value = "父组织id")
    @JsonSerialize(using = Long2StringSerializer.class)
    private Long parentId;


    private String parentName;

    @ApiModelProperty(value = "组织名称")
    private String title;

    @ApiModelProperty(value = "组织简称")
    private String abbreviation;

    @ApiModelProperty(value = "组织类型")
    private Integer orgType;

    private List<OrgRestVO> children;

}